import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/product/spec/list/'+params.pageNum+'/'+params.pageSize,
    method:'post',
    data:params.object
  })
}

export function addSpec(params) {
  return request({
    url:'/product/spec/add',
    method:'post',
    data:params
  })
}

export function addSpecRang(params) {
  return request({
    url:'/product/spec/range/add',
    method:'post',
    data:params
  })
}

export function fetchListSpecRang(params) {
  return request({
    url:'/product/spec/range/list',
    method:'post',
    data:params
  })
}

export function addSpecRangValue(params) {
  return request({
    url:'/product/spec/range/add',
    method:'post',
    data:params
  })
}

export function updateSpecRangValueAvailable(params) {
  return request({
    url:'/product/spec/range/available',
    method:'post',
    data:params
  })
}

export function updateSpecRangValueDisable(params) {
  return request({
    url:'/product/spec/range/disable',
    method:'post',
    data:params
  })
}

export function updateSpecAvailable(params) {
  return request({
    url:'/product/spec/available',
    method:'post',
    data:params
  })
}


export function updateSpecDisable(params) {
  return request({
    url:'/product/spec/disable',
    method:'post',
    data:params
  })
}


